import service from '../utils/request'

export interface ILogin {
  user: string
  password: string
}

export const login = (params: ILogin) => {
  return service({
    url: '/login',
    method: 'post',
    params,
  })
}
